设置类注释

步骤 file->settings->Editor->Fole and Code Templates->Class

1
2
3
4
5
6
7
8
9
10
/**
*
* @ProjectName: ${PROJECT_NAME}
* @ClassName: ${NAME}
* @Description: TODO(一句话描述该类的功能)
* @Author: ${USER}
* @Date: ${DATE} ${TIME}
* @version v1.0
*
*/

方法注释

步骤 file->settings->Editor->Live Templates

1
2
3
4
5
6
7
8
9
/**
* @author:
* date: 2020/5/16 16:08
* @since: JDK 1.8
*
* @description: 这里用一句话描述这个方法的作用
* @param:
* @return:
*/